#!/bin/bash
rm -rf  bin
mkdir bin
basepath=$(cd `dirname $0`; pwd)
APP_HOME=$basepath

#编译
echo building...
target=$APP_HOME/coregeek/src
cd $target
go build -o coregeek
cd $APP_HOME

cp  $target/coregeek $APP_HOME/bin



